home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 262_01.zip / SLPTRM.C < prev    next >
Text File  |  1993-04-14  |  2KB  |  69 lines

  1. #include menu.h
  2. extern char hist[];
  3. static struct {
  4.     char *question = "Available Fonts are:";
  5.     MLINE m[] = {
  6.         {"1. Courier",action,&hist},
  7.         {"2. Courier bold",action,&hist},
  8.         {"3. Line printer compressed",action,&hist};
  9.     };
  10.     int eos = NULL;
  11. } m24;
  12. static struct {
  13.     char *question = "Skip over perforation:";
  14.     MLINE m[] = {
  15.         {"1. Off",action,&hist},
  16.         {"2. On",action,&hist};
  17.     };
  18.     int eos = NULL;
  19. } m23;
  20. static struct {
  21.     char *question = "Select page size.\n\
  22. Remember all except letter size must be hand fed.";
  23.     MLINE m[] = {
  24.         {"1. Executive",action,&hist},
  25.         {"2. Letter",action,&hist},
  26.         {"3. Legal",action,&hist},
  27.         {"4. A4",action,&hist},
  28.         {"5. Monarch (envelope)",action,&hist},
  29.         {"6. Commercial 10 (envelope)",action,&hist},
  30.         {"7. International DL (envelope)",action,&hist},
  31.         {"8. International C5 (envelope)",action,&hist};
  32.     };
  33.     int eos = NULL;
  34. } m22;
  35. static struct {
  36.     char *question = "Choose one.";
  37.     MLINE m[] = {
  38.         {"1. Portrait(vertical)",action,&hist},
  39.         {"2. Landscape(horizontal)",action,&hist};
  40.     };
  41.     int eos = NULL;
  42. } m21;
  43. extern int copies();
  44. static struct {
  45.     char *question = "Which do you want to change?";
  46.     MLINE m[] = {
  47.         {"1. Page orientation",menu,&m21},
  48.         {"2. Page size",menu,&m22},
  49.         {"3. Skip over perforation",menu,&m23},
  50.         {"4. Font",menu,&m24},
  51.         {"5. Number of copies",copies,0};
  52.     };
  53.     int eos = NULL;
  54. } m2;
  55. extern int display(),finish(),exit();
  56. struct {
  57.     char *question = "Select One:";
  58.     MLINE m[] = {
  59.         {"1. Display current printer setup",display,0},
  60.         {"2. Alter printer setup",menu,&m2},
  61.         {"3. Write printer control codes and exit",finish,0},
  62.         {"4. Just exit",exit,0};
  63.     };
  64.     int eos = NULL;
  65. } m;
  66. nu,&m22},
  67.         {"3. Skip over perforation",menu,&m23},
  68.         {"4. Font",menu,&m24},
  69.         {"5. Number of copies",copi